/*
 * @Descripttion: 
 * @version: 
 * @Author: fmy1993
 * @Date: 2021-08-08 14:52:01
 * @LastEditors: fmy1993
 * @LastEditTime: 2021-08-24 15:20:30
 */

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './plugins/DaveV.js'
import './plugins/vue-easytable.js'
import './plugins/vxe-table.js'

// 引入jQuery、bootstrap
import $ from 'jquery'
import 'bootstrap'

// 引入bootstrap样式
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'

//导入字体图标
import './assets/fonts/iconfont'
//导入全局样式表
import './assets/css/global.css'
import axios from 'axios'
// _echarts@5.1.2@echarts @是别名
import '../src/js/echarts/map/province/china.js'

//注：import echarts from 'echarts'  引入echarts后，不能全局使用echarts，所以通过Vue.prototype将echarts保存为全局变量。原则上$echarts可以为任意变量名。
import * as echarts from 'echarts'
//import echarts from 'echarts'
Vue.prototype.$echarts = echarts
// 全局注册 $,jq用的
Vue.prototype.$ = $
//配置请求路径
axios.defaults.baseURL = 'http://120.77.156.205:9505/fishery/api/v1/'

// axios.defaults.baseURL = 'http://localhost:9505/fishery/api/v1/'  //测试路径
Vue.prototype.$http = axios
axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8/x-www-form-urlencoded';
// 增加cookie跨域
axios.defaults.withCredentials = true;//Cookie跨域

Vue.config.productionTip = false
//使用vue router
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
